home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / MacPerl 5.1.3 / Mac_Perl_513_src / perl5.002 / BuildRules.mk < prev    next >
Encoding:
Text File  |  1996-11-30  |  1.8 KB  |  78 lines  |  [TEXT/MPS ]

  1. #
  2. # Build rules for dmake
  3. #
  4.  
  5. #
  6. # Tools
  7. #
  8.  
  9. COpt        =    -sym on -d DEBUGGING -d MULTIPLICITY -w nounusedarg
  10. C68K        =    MWC68K $(COpt) -mc68020 -model far -opt all
  11. C680        =    MWC68K $(COpt) -model far -opt all
  12. CPPC        =    MWCPPC $(COpt) -traceback -opt all
  13. ROptions     =     -i :
  14. Lib68K        =    MWLink68K -xm library -sym on
  15. LibPPC        =    MWLinkPPC -xm library -sym on
  16. SharedLibPPC=    MWLinkPPC -xm sharedlibrary -sym on
  17. LOpt        =     -sym on -w 
  18. ToolLOpt    =     $(LOpt) -xm mpwtool
  19. ToolLink68K    =    MWLink68K $(ToolLOpt) -model far
  20. ToolLinkPPC    =    MWLinkPPC $(ToolLOpt) 
  21. ApplLOpt    =     $(LOpt) -xm application
  22. ApplLink68K    =    MWLink68K $(ApplLOpt) -model far
  23. ApplLinkPPC    =    MWLinkPPC $(ApplLOpt) 
  24. RsrcLink68K    =    MWLink68K $(LOpt) -xm coderesource -model far
  25.  
  26. #
  27. # Directories
  28. #
  29.  
  30. .INIT        :    Obj
  31.  
  32. .SOURCE.o    :    ":Obj:"
  33. .SOURCE.68K    :    ":Obj:"
  34. .SOURCE.680    :    ":Obj:"
  35. .SOURCE.PPC    :    ":Obj:"
  36. .SOURCE.c    :    ":"
  37. .SOURCE.cp    :    ":"
  38.  
  39. #
  40. # Pattern rules
  41. #
  42. # To maximally exploit the speed of the Metrowerks compilers, we employ a
  43. # trick: The majority of object files has the form .c.{ARCH}.o and is subject
  44. # to bulk compilation, while a few have the form .c.o.{ARCH} and are compiled
  45. # one by one.
  46. #
  47.  
  48. %.c.68K.o        :    %.c
  49.     Set Echo 0
  50.     Set Src68K "{{Src68K}} $<"
  51. %.c.680.o        :    %.c
  52.     Set Echo 0
  53.     Set Src680 "{{Src680}} $<"
  54. %.c.PPC.o        :    %.c
  55.     Set Echo 0
  56.     Set SrcPPC "{{SrcPPC}} $<"
  57. %.cp.68K.o        :    %.cp
  58.     Set Echo 0
  59.     Set Src68K "{{Src68K}} $<"
  60. %.cp.680.o        :    %.cp
  61.     Set Echo 0
  62.     Set Src680 "{{Src680}} $<"
  63. %.cp.PPC.o        :    %.cp
  64.     Set Echo 0
  65.     Set SrcPPC "{{SrcPPC}} $<"
  66. %.c.o.68K        :    %.c
  67.     $(C68K) -t -ext .o.68K $< -o :Obj:
  68. %.c.o.680        :    %.c
  69.     $(C680) -t -ext .o.680 $< -o :Obj:
  70. %.c.o.PPC        :    %.c
  71.     $(CPPC) -t -ext .o.PPC $< -o :Obj:
  72. %.cp.o.68K        :    %.cp
  73.     $(C68K) -t -ext .o.68K $< -o :Obj:
  74. %.cp.o.680        :    %.cp
  75.     $(C680) -t -ext .o.680 $< -o :Obj:
  76. %.cp.o.PPC        :    %.cp
  77.     $(CPPC) -t -ext .o.PPC $< -o :Obj:
  78.